export default [
    {
        path: "",
        redirect: "/route/link"
    },
    {
        path: "link",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterLinkView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "RouterLink的使用"]
        },
    },
    {
        path: "path",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterPathView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由嵌套&路由地址&路由懒加载"]
        },
    },
    {
        path: "model",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterModeView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由模式"]
        },
    },
    {
        path: "route",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterRouteView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "激活信息"]
        },
    },
    {
        path: "query",
        name: "query",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterQueryView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由查询参数"]
        },
    },
    {
        // path: "rest/:username/:password",
        path: "rest/:username?/:password?",
        name: "rest",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouteParamsView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由REST参数"]
        },
    },
    {
        path: "test",
        name: "test",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouteTestView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由测试展示"]
        },
    },
    {
        path: "live",
        name: "live",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouterAliveView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由缓存和路由守卫"]
        },
    },
    {
        path: "login",
        name: "login",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/RoutePage/components/RouteLoginView.vue"),
        meta: {
            breadcrumbs: ["路由模块", "路由登录页面"]
        },
    },
    {
        path: ":errorPath(.*)*",
        component: () => import(/* webpackChunkName:"route-group" */"@/views/NotFound/NotFound.vue"),
        meta: {
            breadcrumbs: ["路由模块"]
        },
    }
]